package com.pf.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 订单
 *
 * @author PanFei
 * @date 2021/5/20 21:08
 * @Version 1.0
 */
@TableName(value = "order_table")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Order {

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 库存id
     */
    private Integer goodsId;

    /**
     * 订单时间
     */
    private Date createDate;
}
